<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css"
	href="${rootPath}/Styles/admin-all.css" />
<link rel="stylesheet" type="text/css"
	href="${rootPath}/Styles/base.css" />
<script type="text/javascript" src="${rootPath}/Scripts/jquery-1.7.2.js"></script>
<script type="text/javascript"
	src="${rootPath}/Scripts/jquery-ui-1.8.22.custom.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="${rootPath}/Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />
<link rel="stylesheet" type="text/css"
	href="${rootPath}/Styles/formui.css" />
<script type="text/javascript" src="${rootPath}/Scripts/tb.js"></script>
<link href="${rootPath}/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
	<link rel="stylesheet"
		href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
		integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
		crossorigin="anonymous">
		<link rel="stylesheet" type="text/css"
			href="${rootPath}/Styles/bt.css" />
		<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
		<script
			src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<script type="text/javascript">
			/* 	/* 分页提交表单 
			currentPageId:currentPage文本框的id
			currentPage:当前页的值
			pageSizeId:pageSize文本框的id
			pageSize:每页多少条的值
			 */
			function pageForm(currentPageId, currentPage, pageSizeId, pageSize) {
				/* 获取当前页和每页多少条文本框的值 */
				/*$("#currentPage").val()*/
				/* 修改这个值 */
				/* $("#currentPage").val(23); */
				$("#" + currentPageId).val(currentPage);
				$("#" + pageSizeId).val(pageSize);

				/* jquery提交表单 */
				$("#usersListPageForm").submit();

				/*
				标签的默认行为:如果返回true就执行,如果返回false就不执行
				a链接 默认行为是打开href里面的内容,a链接的默认行为就不执行
				 */
				return false;
			}
		</script>
</head>
<body>

	<div class="alert alert-info">
		当前位置<b class="tip"></b>查询结果
	</div>

	<form action="${rootPath}/jsp/servicecount/monthReturnCar.html"
		method="post" class="form-horizontal">
		<div class="table">
			<table class="table">
				<thead>
					<tr>
						<th>序号</th>
						<th>出租单编号</th>
						<th>起租日期</th>
						<th>应还日期</th>
						<th>客户号</th>
						<th>车号</th>
						<th>出租单状态</th>
						<th>服务人员编号</th>
						<th>编辑</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${requestScope.check}" var="check"
						varStatus="stat">


						<tr class="active">
							<td>${stat.count}</td>
							<td>${check.rentid}</td>
							<td><fmt:formatDate value="${check.arenttable.begindate }"
									pattern="yyyy-MM-dd HH:mm:ss" /></td>
							<td><fmt:formatDate
									value="${check.arenttable.shouldreturndate }"
									pattern="yyyy-MM-dd HH:mm:ss" /></td>
							<td>${check.arenttable.usersId }</td>
							<td>${check.arenttable.carsId }</td>
							<td>${check.arenttable.rentflagStr}</td>
							<td>${check.arenttable.adminsId}</td>
							<td>待发货</td>
						</tr>
					</c:forEach>

				</tbody>

			</table>
	</form>
	<form action="${rootPath }/jsp/servicecount/monthReturnCar.html"
		method="post" class="form-horizontal">
		<!-- 没有搜索条件所以不带搜索条件 -->
		<nav>
		<ul class="pager">
			<li><a href=""
				onclick="return pageForm('currentPage','1','pageSize','${requestScope.pageInfoUtil.pageSize }')"><span>首页</span></a></li>
			<li><a href=""
				onclick="return pageForm('currentPage','${requestScope.pageInfoUtil.prePage }','pageSize','${requestScope.pageInfoUtil.pageSize }')"><span>上一页</span></a></li>
			<li><a href=""
				onclick="return pageForm('currentPage','${requestScope.pageInfoUtil.nextPage }','pageSize','${requestScope.pageInfoUtil.pageSize }')"><span>下一页</span></a></li>
			<li><a href=""
				onclick="return pageForm('currentPage','${requestScope.pageInfoUtil.totalPage }','pageSize','${requestScope.pageInfoUtil.pageSize }')"><span>尾页</span></a></li>
			<li>共${requestScope.pageInfoUtil.totalPage }页,共${requestScope.pageInfoUtil.totalRecord }条</li>
			<li>第 <input type="text" id="currentPage" name="currentPage"
				value="${requestScope.pageInfoUtil.currentPage }" size="5"
				maxlength="5" /> 页
			</li>
			<li>每页<input type="text" id="pageSize" name="pageSize"
				value="${requestScope.pageInfoUtil.pageSize }" size="5"
				maxlength="5" /> 条
			</li>
			<li><input type="submit" value="GO" class="btn btn-primary" /></li>
		</ul>
		</nav>
	</form>
	</div>

	</div>
	</div>
</body>
</html>
